Teacher Version

Hero Image
Hero Image

Strawberry Plant Sorter Challenge Rules

In this challenge you will use a combination of Loops and If/Else Blocks to repeat an inspection process on a number of boxes that represent plants. The robot will move to a plant, sort it to the robot’s right side if it is good, or the robot's left if it is bad. Inspect and sort four plants to complete the challenge.

Rules and Procedures:

  • Use four rectangular objects to represent the plants.
  • The objects must be placed in a straight line, with at least 5 centimeter space between them.
  • The objects should be a random mix of “good” and “bad” plants, and placed in a random order for each run.
  • Green plants are considered “good”.
  • All other color plants are considered “bad”.
  • The robot must correctly sort all plants in a run to complete the challenge.

Hints:

  • Use an If/Else conditional block to conduct individual inspections.
  • Use the ROBOTC Sensors debugger window to see what the color sensor is reading.
    • Remember, the color sensor is very sensitive to ambient light. To get to the Sensors debugger window, download your program, go to Robot > Debugger Windows > Sensors.

© 2016 Robomatter, Inc.

Portions of this product are manufactured under license from Carnegie Mellon University.